package com.gitee.deament.server.core.data.datatype;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * redis 键的值
 * @param <T>
 */
public class Value<T> implements Serializable {
    /**
     * 基本数据
     */
    private T value;
    /**
     * 过期时间,为空则不过期
     */
   private Date expirDateTime;

    public T getValue() {
        return value;
    }

    public void setValue(T value) {
        this.value = value;
    }

    public Date getExpirDateTime() {
        return expirDateTime;
    }

    public void setExpirDateTime(Date expirDateTime) {
        this.expirDateTime = expirDateTime;
    }
}
